home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / info-service / www / src / midaswww-1.0 / Imakefile < prev    next >
Encoding:
Makefile  |  1992-11-16  |  2.5 KB  |  80 lines

  1. /*
  2.  *
  3.  * midaswww -- Machine independent makefile
  4.  *
  5.  * (c) Copyright 1992, Tony Johnson (Tony_Johnson@Slac.Stanford.Edu)
  6.  *
  7.  * Permission to use, copy, modify, distribute, and sell this software
  8.  * and its documentation for any purpose is hereby granted without fee,
  9.  * provided that the above copyright notice appear in all copies and
  10.  * that both that copyright notice and this permission notice appear in
  11.  * supporting documentation, and that the name of Kirk Erickson and
  12.  * Silicon Graphics Inc. not be used in advertising or publicity pertaining
  13.  * to distribution of the software without specific, written prior
  14.  * permission.  Tony Johnson makes no
  15.  * representations about the suitability of this software for any purpose.
  16.  * It is provided "as is" without express or implied warranty.
  17.  *
  18.  * THE ABOVE-NAMED DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
  19.  * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
  20.  * EVENT SHALL THE ABOVE-NAMED BE LIABLE FOR ANY SPECIAL, INDIRECT OR
  21.  * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
  22.  * USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  23.  * OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  24.  * PERFORMANCE OF THIS SOFTWARE.
  25.  */
  26.  
  27. /*
  28.  *  If the default install targets aren't appropriate, change NO to YES,
  29.  *  and edit the targets to what you want.
  30.  */
  31. #define NonStandardInstallTargets NO
  32. #if NonStandardInstallTargets
  33.            BINDIR = /usr/local/bin
  34.            MANDIR = /usr/local/man/cat1
  35.       XAPPLOADDIR = /usr/local/lib/app-defaults
  36. #endif
  37.  
  38.   EXTRA_LIBRARIES = -lMrm -lXm $(DEPLIBS) $(SYSLIBS)
  39.  
  40.  
  41. /*
  42.  *  To compile for debugging.
  43.  *  Take your default OPTIM line from Makefile, and change the -O to -g.
  44.  */
  45. #define TurnOnDebugging NO
  46. #if TurnOnDebugging 
  47.       CDEBUGFLAGS = -g
  48.           DEFINES = -DDEBUG -DVERSION="\"$(VERSION)\""
  49. #else
  50.           DEFINES = -DVERSION="\"$(VERSION)\""
  51. #endif
  52.  
  53.               WWW = www -n -na -p
  54.  
  55. /* You shouldn't need to modify anything below this line */
  56.  
  57. include CommonMakefile
  58.  
  59. ComplexProgramTarget($(PGM))
  60. InstallAppDefaults($(CLASS))
  61.  
  62.  
  63. README:    
  64.     $(WWW) http://slacvx.slac.stanford.edu:80/midaswww/v10/readme.html > README
  65.  
  66. README_VMS:    
  67.     $(WWW) http://slacvx.slac.stanford.edu:80/midaswww/v10/readme_vms.html > README_VMS
  68.  
  69. tar: $(DIR).tar.Z
  70.  
  71. $(DIR).tar.Z: $(HEADERS) $(SRCS) $(UILS) $(OTHERS)
  72.     mkdir $(DIR)
  73.     cp $(HEADERS) $(SRCS) $(UILS) $(OTHERS) $(DIR)
  74.     tar -cvf $(DIR).tar $(DIR)
  75.     compress $(DIR).tar
  76.     cd $(DIR); rm -f *
  77.     rmdir $(DIR)
  78.     rm README*
  79.  
  80.